#ifndef JSON_DEVICE_OBJECT_H
#define JSON_DEVICE_OBJECT_H

#include "knx/qt_knx.h"
#include "control/cknxcontrol.h"

class Json_DEVICE_OBJECT
{
public:
    explicit Json_DEVICE_OBJECT(QByteArray json,void *cntDelegate);
    ~Json_DEVICE_OBJECT();

    QList<DEVICE_OBJECT *> *knxRegListRequest();
    void doAction(QString action,QString value);
    void doRead();

    QString actionFromStatus(QString address,QString value);
    QString valueCheck(QString action,QString value);

    void removeDevList();

    QString _pid,_id,_type,_name,
        _icon,_exp,_action,_feedback,_send,_state_value;
    QList<DEVICE_OBJECT *> *_regList;

    CKnxControl *_usrcontrol;
    int _read_times;
};

#endif // JSON_DEVICE_OBJECT_H
